package com.xiyu.service.enums.medicine;

import lombok.AllArgsConstructor;
import lombok.Getter;
import java.util.Arrays;
import com.xiyu.service.enums.common.IntArrayValuable;

/**
* 药品库存记录类型
*/
@Getter
@AllArgsConstructor
public enum HealthMedicineStockRecordTypeEnum implements IntArrayValuable {

    /**
    * 缴存
    */
    DEPOSIT(1, "缴存"),
    /**
    * 退缴
    */
    REFUND(2, "退缴"),
    /**
    * 损耗
    */
    LOSS(3, "损耗"),
    /**
    * 补录
    */
    ADDITIONAL(4, "补录"),
    /**
    * 用药
    */
    USE(5, "用药");

    private final Integer value;

    private final String label;

    public static final int[] VALUES = Arrays.stream(values()).mapToInt(HealthMedicineStockRecordTypeEnum::getValue).toArray();

    @Override
    public int[] getValues() { return VALUES;}

    public static final String[] LABELS = Arrays.stream(values()).map(HealthMedicineStockRecordTypeEnum::getLabel).toArray(String[]::new);

    @Override
    public String[] getLabels() { return LABELS; }

}
